<template>
<div class="top">
  <el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item label="">
      <el-input placeholder="请输入内容" v-model="input3" :disabled="true">
      <template slot="prepend">分厂</template>
    </el-input>
    </el-form-item>
    <el-form-item label="">
      <el-input placeholder="请输入内容" v-model="input4" :disabled="true">
      <template slot="prepend">上手日期</template>
    </el-input>
    </el-form-item>
    <el-form-item label="款号(PO号)">
      <el-select v-model="value8" filterable placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value">
        </el-option>
      </el-select>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
      <el-button type="primary">导出<i class="el-icon-upload el-icon--right"></i></el-button>
    </el-form-item>
  </el-form>
</div>
</template>

<script>
export default {
  name: 'BugSearch',
  data () {
    return {
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }, {
        value: '选项3',
        label: '蚵仔煎'
      }, {
        value: '选项4',
        label: '龙须面'
      }, {
        value: '选项5',
        label: '北京烤鸭'
      }],
      input3: '',
      input4: '',
      value8: '',
      formInline: {
        user: '',
        region: ''
      }
    }
  },
  methods: {
    onSubmit () {
      console.log('submit!')
    }
  }
}
</script>

<style lang="stylus" scoped>
.top
  float: right
</style>
